﻿
Public Class accessor_settings
    Public debug As Boolean = False
End Class

Public Interface base_accessor_t
    Function settings() As accessor_settings
End Interface

Public Interface accessor_t
    Inherits base_accessor_t
    Function read(ByVal key As String, ByVal result As pointer(Of bytes)) As eventComb
    Function write(ByVal key As String, ByVal value As bytes) As eventComb
    Function [erase](ByVal key As String) As eventComb
    Function exist(ByVal key As String, ByVal result As pointer(Of Boolean)) As eventComb
    Function sizeof(ByVal key As String, ByVal result As pointer(Of UInt64)) As eventComb
End Interface

Public Interface sync_accessor_t
    Inherits base_accessor_t
    Function read(ByVal key As String, ByRef result As bytes) As Boolean
    Function write(ByVal key As String, ByVal value As bytes) As Boolean
    Function [erase](ByVal key As String) As Boolean
    Function exist(ByVal key As String, ByRef result As Boolean) As Boolean
    Function sizeof(ByVal key As String, ByRef sz As UInt64) As Boolean
End Interface
